package day9;

public class Super{
    // 构造方法
    Super(){
        System.out.println("Super");
    }

    public static void main(String[] args){
        Super supe = new Super();
        Sub sub = new Sub();
    }
}

class Sub extends Super{
    // 构造方法
    Sub(){
        super();
        System.out.println("Sub");
    }
}

